using Arrowgene.Ddon.Server;
using Arrowgene.Ddon.Server.Network;
using Arrowgene.Ddon.Shared.Network;
using Arrowgene.Logging;

namespace Arrowgene.Ddon.GameServer.Handler
{
    public class QuestGetAreaInfoListHandler : PacketHandler<GameClient>
    {
        private static readonly ServerLogger Logger = LogProvider.Logger<ServerLogger>(typeof(QuestGetAreaInfoListHandler));

        private static readonly byte[] PcapData = new byte[] { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x01,0x01,0x00,0x05,0x00,0x00,0x00,0x00,0x02,0x01,0x00,0x07,0x00,0x00,0x00,0x00,0x03,0x01,0x00,0x08,0x00,0x00,0x00,0x00,0x04,0x01,0x00,0x03,0x00,0x00,0x00,0x00,0x05,0x01,0x00,0x04,0x00,0x00,0x00,0x00,0x06,0x01,0x00,0x07,0x00,0x00,0x00,0x00,0x07,0x01,0x00,0x08,0x00,0x00,0x00,0x00,0x08,0x01,0x00,0x08,0x00,0x00,0x00,0x00,0x09,0x01,0x00,0x04,0x00,0x00,0x00,0x00,0x0A,0x01,0x00,0x06,0x00,0x00,0x00,0x00,0x0B,0x01,0x00,0x05,0x00,0x00,0x00,0x00,0x0C,0x01,0x00,0x06,0x00,0x00,0x00,0x00,0x0D,0x01,0x00,0x0B,0x00,0x00,0x00,0x00,0x0E,0x01,0x00,0x0E,0x00,0x00,0x00,0x00,0x0F,0x01,0x00,0x0C,0x00,0x00,0x00,0x00,0x10,0x01,0x00,0x0C,0x00,0x00,0x00,0x00,0x11,0x01,0x00,0x0C,0x00,0x00,0x00,0x00,0x12,0x01,0x01,0x0A,0x00,0x00,0x00,0x00,0x13,0x01,0x01,0x09,0x00,0x00,0x00,0x00,0x14,0x01,0x01,0x08,0x00,0x00,0x00,0x00,0x15,0x01,0x00,0x04,0x00,0x00,0x00,0x00,0x16,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x17,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x01,0x00,0x00,0x00,0x40,0x20,0x00,0x00,0x00,0x00,0x5D,0xC3,0x6C,0x90,0x00 };

        public QuestGetAreaInfoListHandler(DdonGameServer server) : base(server)
        {
        }

        public override PacketId Id => PacketId.C2S_QUEST_GET_AREA_INFO_LIST_REQ;

        public override void Handle(GameClient client, IPacket request)
        {
            Packet response = new Packet(PacketId.S2C_QUEST_GET_AREA_INFO_LIST_RES, PcapData);
            client.Send(response);
        }
    }
}
